package com.dkm.orproject.dkmoa.service.flow;

import com.dkm.orproject.dkmoa.domain.OaPersonnel;
import com.dkm.orproject.dkmoa.domain.OaRegularFlow;

import java.util.List;

/**
 * @ClassName : OaRegularFlowService  //类名
 * @Description : 转正流程服务接口  //描述
 * @Author : 易嵘  //作者
 * @Date: 2020-10-10 14:12  //时间
 */
public interface OaRegularFlowService {

    List<OaRegularFlow> findAll(String regularFlow, String startTime, String endTime, Integer page, Integer limit);

    Long rowCount(String regularFlow, String startTime, String endTime);

    OaRegularFlow findById(Long id);

    List<OaRegularFlow> selectAll(List<Long> list);

    int deleteAll(List<Long> list);

    int deleteById(Long id);

    int add(OaRegularFlow flow, String personnelName);

    int staffing(OaRegularFlow regularFlow, OaPersonnel personnel);

    int sectionPass(OaRegularFlow regularFlow, OaPersonnel personnel);

    int sectionNoPass(OaRegularFlow regularFlow, OaPersonnel personnel, String formReason);

    int staffingNoPass(OaRegularFlow regularFlow, OaPersonnel personnel, String formReason);

    int staffingPass(OaRegularFlow regularFlow, OaPersonnel personnel);

    OaRegularFlow isExist(OaPersonnel personnel);
}
